import axios from '@/libs/api.request'

/**
 * 列表
 * @param data
 * @returns {wx.RequestTask | never}
 */
export const getList = (params) => {
  return axios.request({
    url: 'Coin/index',
    method: 'get',
    params: params
  })
}

/**
 * 导出点券
 * @param data
 * @returns {wx.RequestTask | never}
 */
export const exportList = (params) => {
  return axios.request({
    url: 'Coin/export',
    method: 'get',
    params: params,
    responseType: 'arraybuffer'
  })
}
